$('#btnAdd').click(function () {
    window.location.href=`/Product/CreateOrEdit/`;
})

function btnEdit(id) {
window.location.href=`/Product/CreateOrEdit/${id}`;
}

function btnCancel() {
   window.location.href=`/Product/Index`;
}

function btnDele(id) {
    
    let a='删除了';
    if (confirm(a)) {
       window.location.href=`/Product/btnDele/${id}`;
    } else {
       window.location.href=`/Product/Index`;
    }
}